package com.ali.test.rpccontroller;


import com.ali.test.domain.User;
import com.ali.test.facade.SampleService1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RpcController {

    Logger log = LoggerFactory.getLogger("DOMAIN-DIGEST");


    @Autowired
    SampleService1 sampleService;

    @RequestMapping("/rpc/user")
    public User getUser(String id){

        log.info("rpc user");
        return sampleService.message(id);
    }
}
